﻿using ConfigServices;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.Extensions.DependencyInjection
{
    public static class ConfigExtensions
    {
        public static void AddConfigServices(this IServiceCollection services,string fileName)
        {
            services.AddScoped<IConfigService>(sp => new IniFileConfigService() { FilePath = fileName });
        }
    }
}
